package com.gc.server;

import com.yf.utils.GenUtils;

import java.io.IOException;
import java.sql.SQLException;

public class Gen {

    public static void main(String[] args) throws Exception {
        GenUtils.init("jdbc:mysql://localhost:3306/gc-server", "root", "12345678", "/Users/hxf/Desktop/code.zip", "com.gc.server").generatorCode("dic_type");
//        GenUtils genUtils = GenUtils.init("jdbc:mysql://localhost:3306/gc-server", "root", "19941220", "/Users/huangfei/Desktop/code.zip", "com.gc.server");
//        genUtils.table("vote").alias("vote").join("user").alias("user").on("user.id", "vote.user_id").join("book").alias("book").on("book.id", "vote.book_id").generateVoCode();
//        genUtils.table("sale_record").alias("record").join("link_goods").alias("goods").on("goods.id", "record.goods_id").join("shop").alias("shop").on("shop.id", "record.shop_id").generateVoCode();
//        genUtils.table("goods_apply").alias("apply").join("user").alias("user").on("user.id", "apply.user_id").generateVoCode();
//        genUtils.table("todo").alias("todo").join("user").alias("user").on("user.id", "todo.user_id").generateVoCode();
//        genUtils.generatorCode("point_type");
    }

}
